package org.anderground.editor.edits;

import org.anderground.core.model.Line;

public class SetLineNameAction extends AbstractAction<Line, String> {

	public SetLineNameAction(Line object, String value) {
		super(object, value);
	}

	@Override
	protected String getCurrentValue() {
		return getTarget().getName();
	}

	@Override
	protected void setCurrentValue(String value) {

		Editor.edit(getTarget()).setName(value);
	}

}
